﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.serverpackets
{
    public class S_MapID : ServerBasePacket
    {
        public S_MapID( int mapid, bool isUnderwater )
        {
            writeC( Opcodes.S_OPCODE_MAPID );
            writeH( mapid );
            writeC( isUnderwater ? 1 : 0 );
            writeC( 0 );
            writeH( 0 );
            writeC( 0 );
            writeD( 0 );
        }

        override
        public byte[] getContent()
        {
            return getBytes();
        }

        override public String getType()
        {
            return "[S] S_MapID";
        }
    }
}